<!-- toaster directive -->

<toaster-container
	toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	
<!-- / toaster directive -->
<!-- 导航条 -->
<div class="bg-white bread-crumb">
	<ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
		<li><a ui-sref="main"><i class="glyphicon glyphicon-log-in"></i> 门禁管理</a></li>
		<li><a ui-sref="main.authm.cardAuth.list" class="active">授权管理</a></li>
		<li class="active">新增快捷人员授权</li>
	</ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content" id="col-lg-2-bg-none">
	<div class="panel panel-default">
		<!-- 头部 -->
		<div class="panel-heading font-bold">
			<a
				class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs"
				ui-sref="main.authm.cardAuth.list"><i
				class="text-md glyphicon glyphicon-chevron-up text-muted"></i></a>
		</div>
		<!--表单-->
		<div class="panel-body" id="none-bgc">
			<form class="form-horizontal" name="user_form">
				<!--用户名-->
				<div class="form-group" style="width: 100%;">
					<label class="col-lg-2 col-sm-3 control-label" for="people">
						授权人员</label>
					<div class="col-sm-9">
						<textarea rows="15" ng-model="people"  style="width:100%;resize:none;overflow-y:scroll;"  disabled="disabled"></textarea> 
						<!-- <span class="form-control"></span> -->
						<input type="text" class="form-control" name="personId"   ng-hide="true" id="personId" ng-model="record.personId">
					</div>
					<button type="button" class="btn btn-primary new-primary" style="margin-left: 10px" ng-click="showMemberList()">选择</button>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>

				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="bname">楼栋地址</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="bname" id="bname" ng-model="bname" ng-click="openDevice()" >
					</div>
					<input type="text" class="form-control" name="deviceId"   ng-hide="true" id="deviceId" ng-model="record.deviceId">
				</div>

				<!-- <div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="authNo">
						门禁卡号</label>
					<div class="col-sm-6">
					
						<input type="text" class="form-control" name="authNo" 
							id="authNo" placeholder="请输入门禁卡号..."
							ng-model="record.authNo">
						
					</div>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div> -->

				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="authType">
						卡类型</label>
					<div class="col-sm-9">
						<select class="form-control" name="authType" id="authType" ng-model="record.authType">
							<option value="0" ng-selected="1">身份证</option>	
						</select>
					</div>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="authType">
						门禁状态</label>
					<div class="col-sm-9">
						<select class="form-control" name="status" ng-model="record.status">
							<option value="1" ng-selected="1">启用</option>
							<option value="0">禁用</option>	
								
						</select>
					</div>
				</div>


				<!--<div class="form-group">-->
                        <!--<label class="col-lg-2 col-sm-3 control-label" for="endTime">结束时间</label>-->
                        <!--<div class="col-sm-6">-->
                            <!--<input type="date"  class="form-control" name="endTime" id="endTime" ng-model="record.endTime" format="YYYY-MM-DD">-->
                            <!--<span class="help-block m-b-none"></span>-->
                        <!--</div>-->
                <!--</div>-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="endTime">结束时间</label>
					<div class="col-lg-9">
						<div class="input-group m-d">
							<input type="text" class="form-control ng-pristine ng-valid ng-isolate-scope ng-empty ng-valid-date ng-touched"
								   name="endTime" datepicker-popup="yyyy-MM-dd" ng-model="record.endTime"
								   id="endTime" is-open="endTime" datepicker-options="dateOptions"
								   close-text="关闭"clear-text="清除" current-text = "今天"
								   placeholder="结束时间"
							>
							<span class="input-group-btn">
								<button type="button" class="btn btn-default" ng-click="openDatepicker($event,2)">
								<i class="glyphicon glyphicon-calendar"></i>
								</button>
							</span>
						</div>
					</div>
				</div>

				<div class="line line-dashed b-b line-lg pull-in"></div>
				<!--btn-->
				<div class="form-group" style="width: 100%">
					<div class="col-sm-6 col-sm-offset-2 text-center"
						 style="width: 100%;margin: 0;padding: 0;text-align: center">
						<button type="reset" class="btn  w-xs addNew">重置</button>
						<button type="submit" class="btn btn-info w-xs m-l-xl addNew"
							ng-disabled="isDisabled">保存</button> 
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

<style scoped>
	.form-group{width:50%;float: left;}
	.app-content-body .content{
		margin-top:44px;
	}
	.btn-danger{padding: 8px 10px;}
	#col-lg-2-bg-none .panel-body .form-group .col-lg-2{background-color: #fff;}
	.modal.in .modal-dialog{width:1160px;}
	.control-label{width: 100px;}
</style>
